﻿using System;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNet.Identity;

namespace NHibernate.Identity
{
    public class IdentityRole : IRole
    {
        public IdentityRole()
            : this("")
        {
        }

        public IdentityRole(string roleName)
        {
            Id = Guid.NewGuid().ToString();
            Name = roleName;
        }

        [Key]
        public virtual string Id { get; set; }

        public virtual string Name { get; set; }
    }
}